Skip to content

Added gRPC command SetSketchDefaults to change sketch attached board/port #2217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 19, 2023

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Jun 16, 2023

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

Added gRPC API to automatically amend the project file sketch.yaml while running the board attach commands.
This change removes some of the gRPC API bypasses.

What is the current behavior?

What is the new behavior?

No changes

Does this PR introduce a breaking change, and is titled accordingly?

Yes, a small change in golang API.

Other information

@cmaglie cmaglie added type: enhancement Proposed improvement topic: code Related to content of the project itself topic: gRPC Related to the gRPC interface labels Jun 16, 2023
@cmaglie cmaglie added this to the Arduino CLI 0.34.0 milestone Jun 16, 2023
@cmaglie cmaglie self-assigned this Jun 16, 2023
@cmaglie cmaglie force-pushed the remove_some_sketch_access branch from ea6768e to c03ac6a Compare June 16, 2023 16:39
cmaglie added 2 commits June 16, 2023 18:41
This allows to finally remove wrong access to `sketch.Sketch` from `cli`
package.
@cmaglie cmaglie force-pushed the remove_some_sketch_access branch from 935c5b9 to a10a229 Compare June 19, 2023 08:22
@codecov
Copy link

codecov bot commented Jun 19, 2023

Codecov Report

Patch coverage: 43.56% and no project coverage change.

Comparison is base (82e6f5d) 62.90% compared to head (a10a229) 62.91%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2217   +/-   ##
=======================================
  Coverage   62.90%   62.91%           
=======================================
  Files         218      220    +2     
  Lines       19452    19477   +25     
=======================================
+ Hits        12237    12254   +17     
- Misses       6134     6139    +5     
- Partials     1081     1084    +3     
Flag Coverage Δ
unit 62.91% <43.56%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
arduino/errors.go 27.62% <0.00%> (-0.40%) ⬇️
commands/daemon/daemon.go 28.70% <0.00%> (-0.27%) ⬇️
commands/instances.go 64.70% <ø> (+3.73%) ⬆️
commands/sketch/set_defaults.go 0.00% <0.00%> (ø)
internal/cli/arguments/sketch.go 85.00% <ø> (-3.47%) ⬇️
internal/cli/board/attach.go 25.42% <0.00%> (+2.69%) ⬆️
internal/cli/burnbootloader/burnbootloader.go 45.23% <0.00%> (ø)
internal/cli/monitor/monitor.go 13.07% <0.00%> (ø)
internal/cli/arguments/port.go 46.87% <20.00%> (-4.15%) ⬇️
internal/cli/debug/debug.go 68.13% <40.00%> (-2.33%) ⬇️
... and 4 more

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cmaglie cmaglie merged commit 223d3fa into arduino:master Jun 19, 2023
@cmaglie cmaglie deleted the remove_some_sketch_access branch June 19, 2023 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself topic: gRPC Related to the gRPC interface type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants